package ehcache.demo2;

import org.ehcache.CacheManager;
import org.ehcache.config.Configuration;
import org.ehcache.config.builders.CacheManagerBuilder;
import org.ehcache.xml.XmlConfiguration;

import java.net.URL;

/**
 * Created by dongjigong on 2018/4/28.
 *
 * @Email osbornjonny@126.com
 * @Description
 */
public class Demo2 {

    public static void main(String[] args) {
        URL myUrl = Demo2.class.getResource("Ehcache.xml");
        Configuration configuration = new XmlConfiguration(myUrl);
        CacheManager cacheManager = CacheManagerBuilder.newCacheManager(configuration);


    }
}
